package com.sqsf.javabean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Video {
    private int id;
    private String courseName;
    private String title;
    private String description;
    private String videoUrl;
    private int tid;
    private Date createdTime;


    public String getCreatedTimeStr() {
        SimpleDateFormat sdf  = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = sdf.format(createdTime);
        return format;
    }
}
